package Job04.TestPerson;

import Job04.Person.Person;
import Job04.Student.Student;
import Job04.Teacher.Teacher;

public class TestPerson {
    static Person[] people = new Person[3];
    static {
        people[0] = new Student(1,"牛逼","学生",0,18000.00D);
        people[1] = new Teacher(1,"卧槽","老师",8000.00D);
    }

    public static void main(String[] args) {
        for (Person P:people) {
            if (P == null){
                continue;
            }
            P.talk();
        }
    }
}
